package com.biosimilarity.naturalselection.snippet

class HelloWorld {
  def datasetExampleStrs : List[String] =
    List(
      "Nil",
      "record () { }",
      "record (F1,F2,F3){ (1,2.0,\"three\"), (4,5.0,\"six\") }",
      "record (F1,F2,F3) { (x,y,z) | (x,u,w) <- R1, (v,y,a) <- R2, (t,s,z) <- R3, u == v, a > w }",
      "let {: (a,b,c) ; R1 :} = R in record (F1,F2,F3) { (x,y,z) | (x,u,w) <- R1, (v,y,a) <- R2, (t,s,z) <- R3, u == v, a > w }",
      "let {: (a,b,c) ; R1 :} = R in record (F1,F2,F3) { (x,y,z) | (x,u,w) <- R1, (v,y,a) <- R2, (t,s,z) <- R3, u == v, a > w, (u,v,w) in (~null,~null,~null) }",
      "let {: (a,b,c) ; R1 :} = R in record (F1,F2,F3) { (x,y,z) | (x,u,w) <- R1, (v,y,a) <- R2, (t,s,z) <- R3, u == v, a > w, (u,v,w) in (~null,~null,~0) }",
      "(2,3,5) :: record (F1,F2,F3) { (x,y,z) | (x,u,w) <- R1, (v,y,a) <- R2, (t,s,z) <- R3, u == v, a > w }",
      "let R = (( (2,3,5) :: record (F1,F2,F3){ (x*x,y*y,z*z) | (x,y,z) <- R } )) in R"
      )
  def example0 =
    <div>{datasetExampleStrs(0)}</div>
  def example1 =
    <div>{datasetExampleStrs(1)}</div>
  def example2 =
    <div>{datasetExampleStrs(2)}</div>
  def example3 =
    <div>{datasetExampleStrs(3)}</div>
  def example4 =
    <div>{datasetExampleStrs(4)}</div>
  def example5 =
    <div>{datasetExampleStrs(5)}</div>
  def example6 =
    <div>{datasetExampleStrs(6)}</div>
  def example7 =
    <div>{datasetExampleStrs(7)}</div>
  def example8 =
    <div>{datasetExampleStrs(8)}</div>
  def howdy = <span>Welcome to naturalselection at {new java.util.Date}</span>
}

